package com.shenkh.usunshine.spring.helloworld.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;


public class GreetingNotifier implements ApplicationListener<GreetingEvent> {
	Logger logger = LoggerFactory.getLogger(GreetingNotifier.class);

	@Override
	public void onApplicationEvent(GreetingEvent event) {
		logger.info("GreetingNotifier revieved message: " + event.getGreetingWords());
	}
}
